package com.xique.park.api;

import com.xique.common.core.constant.ServiceNameConstants;
import com.xique.common.core.domain.R;
import com.xique.park.api.dto.ParkingOrderDTO;
import com.xique.park.api.factory.RemoteParkingOrderFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 车场订单接口
 * @author shd
 * @date 2022/1/12 9:44
 */
@FeignClient(contextId = "RemoteParkingOrderService", value = ServiceNameConstants.PARK_BIZ_SERVICE, fallbackFactory = RemoteParkingOrderFallbackFactory.class)
public interface RemoteParkingOrderService {

    /**
     * 获取停车订单
     * @author shd
     * @date 2022/1/12 9:46
     * @param plate
     * @return com.xique.common.core.domain.R<com.xique.park.api.dto.ParkOrderDTO>
     */
    @GetMapping("parkingOrderOn/getParkingOrder")
    R<ParkingOrderDTO> getParkingOrder(@RequestParam("plate") String plate);

}
